const tokenAdimin = 'adminToken';


export function setToken(value){
  sessionStorage.setItem(tokenAdimin,value)
}

export function getToken(value){
  return sessionStorage.getItem(tokenAdimin)
}

export function setSession(key,value){
  sessionStorage.setItem(key,JSON.stringify(value))
}

export function getSession(key){
  return JSON.parse(sessionStorage.getItem(key))
}

export function removeToken(){
  return sessionStorage.removeItem(tokenAdimin)
}

export function removeSession(key){
  return sessionStorage.removeItem(key)
}